home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / DJFLX237.ARJ / FLEX237.DIF < prev    next >
Text File  |  1992-04-13  |  3KB  |  105 lines

  1. diff -c2 +recursive orig/flex-237/configur.bat flex-237/configur.bat
  2. *** orig/flex-237/configur.bat  Sat Mar 28 02:53:38 1992
  3. --- flex-237/configur.bat       Mon Apr 13 23:15:02 1992
  4. ***************
  5. *** 0 ****
  6. --- 1,27 ----
  7. + @echo off
  8. + echo Configuring flex for go32
  9. + rem This batch file assumes a unix-type "sed" program
  10. + echo # Makefile generated by "configure.bat">Makefile.dos
  11. + if exist config.sed del config.sed
  12. + echo "/^# Makefile gen/d                              ">>config.sed
  13. + echo "s/$(YACC)/bison -o parse.c/                     ">>config.sed
  14. + echo "/y\.tab\.c/ c\                                  ">>config.sed
  15. + echo "parse.o: parse.c parse.h\                               ">>config.sed
  16. + echo "        gcc $(CFLAGS) -c parse.c                        ">>config.sed
  17. + echo "/y\.tab\.h/ d                                   ">>config.sed
  18. + echo "/LDFLAGS =/ s/-s//                              ">>config.sed
  19. + echo "/CFLAGS =/ c\                                   ">>config.sed
  20. + echo "CFLAGS = -O -DSHORT_FILE_NAMES                  ">>config.sed
  21. + sed -e "s/^\"//" -e "s/\"$//" -e "s/[         ]*$//" config.sed > config2.sed
  22. + sed -f config2.sed makefile >> makefile.dos
  23. + del config.sed
  24. + del config2.sed
  25. + copy makefile.dos makefile
  26. + del makefile.dos
  27. + rem copy initscan.c scan.c
  28. diff -c2 +recursive orig/flex-237/flexdef.h flex-237/flexdef.h
  29. *** orig/flex-237/flexdef.h     Sat Mar 28 03:09:56 1992
  30. --- flex-237/flexdef.h  Sat Mar 28 03:28:08 1992
  31. ***************
  32. *** 70,73 ****
  33. --- 70,74 ----
  34.   char *sprintf(); /* keep lint happy */
  35.   #endif
  36. + #ifndef __GO32__
  37.   #ifdef SCO_UNIX
  38.   void *memset();
  39. ***************
  40. *** 76,79 ****
  41. --- 77,81 ----
  42.   #endif
  43.   #endif
  44. + #endif
  45.   
  46.   #ifdef AMIGA
  47. ***************
  48. *** 660,664 ****
  49.    * be YYSTYPE, but we can't easily get our hands on it.
  50.    */
  51. ! extern int yylval;
  52.   
  53.   
  54. --- 662,669 ----
  55.    * be YYSTYPE, but we can't easily get our hands on it.
  56.    */
  57. ! #ifndef YYSTYPE
  58. ! #define YYSTYPE int
  59. ! #endif
  60. ! extern YYSTYPE yylval;
  61.   
  62.   
  63. ***************
  64. *** 867,871 ****
  65. --- 872,878 ----
  66.   /* The Unix kernel calls used here */
  67.   
  68. + #ifndef __GO32__
  69.   extern int read PROTO((int, char*, int));
  70.   extern int unlink PROTO((char*));
  71.   extern int write PROTO((int, char*, int));
  72. + #endif
  73. diff -c2 +recursive orig/flex-237/main.c flex-237/main.c
  74. *** orig/flex-237/main.c        Mon Apr 13 23:24:34 1992
  75. --- flex-237/main.c     Mon Apr 13 23:26:28 1992
  76. ***************
  77. *** 553,559 ****
  78.         {
  79.         static char skeleton_name_storage[400];
  80.   
  81. !       skelname = skeleton_name_storage;
  82. !       (void) strcpy( skelname, DEFAULT_SKELETON_FILE );
  83.         }
  84.   
  85. --- 553,565 ----
  86.         {
  87.         static char skeleton_name_storage[400];
  88. +       char *eskel = getenv("FLEX_SKELETON");
  89.   
  90. !         if (eskel)
  91. !           skelname = eskel;
  92. !         else
  93. !         {
  94. !         skelname = skeleton_name_storage;
  95. !         (void) strcpy( skelname, DEFAULT_SKELETON_FILE );
  96. !         }
  97.         }
  98.   
  99.